<?php
namespace app\common\validate;

use think\Validate;

class PlayerRole extends Validate
{
    protected $connection = 'db_config_aiqi';
    protected $rule = [
        'role_id'         => 'require|unique:player',
        'password'           => 'require',
        'verify'   => 'require|captcha'
    ];

    protected $message = [
        'account.require'         => '请输入用户名',
        'account.unique'          => '用户名已存在',
        'password.require'         => '请输入密码',
        'verify.require'     => '请输入验证码',
        'verify.captcha'     => '验证码不正确',
    ];
}